package com.xiyu.service.enums.medicine;

import lombok.AllArgsConstructor;
import lombok.Getter;
import java.util.Arrays;
import com.xiyu.service.enums.common.IntArrayValuable;

/**
* 药品类型
*/
@Getter
@AllArgsConstructor
public enum HealthMedicineTypeEnum implements IntArrayValuable {

    /**
    * 中药
    */
    CHINESE_MODICINE(1, "中药"),
    /**
    * 西药
    */
    WESTERN_MEDICINE(2, "西药");

    private final Integer value;

    private final String label;

    public static final int[] VALUES = Arrays.stream(values()).mapToInt(HealthMedicineTypeEnum::getValue).toArray();

    @Override
    public int[] getValues() { return VALUES;}

    public static final String[] LABELS = Arrays.stream(values()).map(HealthMedicineTypeEnum::getLabel).toArray(String[]::new);

    @Override
    public String[] getLabels() { return LABELS; }

}
